package com.easy.dn.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * <p>
 * 实体类，可以将自己想要填充的数据包装进去，同时附带这个数据对应的类型
 */
public class PinnedHeaderBean<T> implements MultiItemEntity {

    private final int itemType;

    private T data;

    private String mHeader;

    public PinnedHeaderBean(T data, int itemType, String  headerName) {
        this.data = data;
        this.itemType = itemType;
        this.mHeader = headerName;
    }

    public void setData(T data) {
        this.data = data;
    }

    public void setPinnedHeaderName(String pinnedHeaderName) {
        this.mHeader = pinnedHeaderName;
    }

    public T getData() {
        return data;
    }

    public String getPinnedHeaderName() {
        return mHeader;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
